import request from '@/utils/request';

export default {
  getAllUsers(params) {
    return request({
      url: '/managerSystem/findAllUsers',
      method: 'get',
      params
    });
  },
  addStaff(data) {
    return request({
      url: '/managerSystem/addStaff',
      method: 'post',
      data
    });
  },
  deleteUser(params) {
    return request({
      url: '/managerSystem/deleteUser',
      method: 'get',
      params
    });
  },
  updateUser(params) {
    return request({
      url: '/managerSystem/updateUser',
      method: 'post',
      data: params
    });
  },
  findUserByName(data) {
    return request({
      url: '/managerSystem/findUserByName',
      method: 'post',
      data
    });
  },
  exportExcell(params) {
    return request({
      url: '/managerSystem/exportExcell',
      method: 'get',
      params
    });
  },
  findAllSummaryTable(params) {
    return request({
      url: '/managerSystem/findAllSummaryTable',
      method: 'get',
      params
    });
  },
  getCodeList() {
    return request({
      url: '/managerSystem/getCodeList',
      method: 'get'
    });
  },
  addSummary(data) {
    return request({
      url: '/managerSystem/addSummary',
      method: 'post',
      data
    });
  },
  deleteSummary(params) {
    return request({
      url: '/managerSystem/deleteSummary',
      method: 'get',
      params
    });
  },
  updateSummary(params) {
    return request({
      url: '/managerSystem/updateSummary',
      method: 'post',
      data: params
    });
  },
  findSummaryByText(data) {
    return request({
      url: '/managerSystem/findSummaryByText',
      method: 'post',
      data
    });
  },
  findAllMessage(params) {
    return request({
      url: '/managerSystem/findAllMessage',
      method: 'get',
      params
    });
  },
  deleteMessage(params) {
    return request({
      url: '/managerSystem/deleteMessage',
      method: 'get',
      params
    });
  },
  findLogs(params) {
    return request({
      url: '/managerSystem/findLogs',
      method: 'get',
      params
    });
  },
  getCurrentUser() {
    return request({
      url: '/login/getCurrentUser',
      method: 'get'
    });
  },
  doLogOut() {
    return request({
      url: '/login/doLogOut',
      method: 'get'
    });
  }
};
